import request from "@/utils/request";
export const getSupplierService = (data) =>
  request.post("/api/supplier/list", data);

export const updateSupplierService = (id, data) =>
  request.put("/api/supplier/"+id, data);

export const deleteSupplierService = (id) =>
  request.delete("/api/supplier/"+id);

export const addSupplierService = (data) =>
  request.post("/api/supplier/add", data);
